package com.beetlestech.nfe.main.biz.com.impl;

import com.beetlestech.nfe.fw.core.biz.AbstractDBLogic;
import com.beetlestech.nfe.main.biz.com.HbSaveCourseEvaluation;
import com.beetlestech.nfe.main.biz.constant.CommonConstant;
import com.beetlestech.nfe.main.biz.constant.CtgCodeConstant;
import com.beetlestech.nfe.main.biz.constant.HbMessageCode;
import com.beetlestech.nfe.main.db.constant.SQLConstant;
import com.beetlestech.nfe.main.db.tbl.CourseevaluationDTO;
import com.beetlestech.nfe.main.db.tbl.StudentorderDTO;

public class HbSaveCourseEvaluationImpl extends AbstractDBLogic implements HbSaveCourseEvaluation, CtgCodeConstant, HbMessageCode, CommonConstant, SQLConstant {

	@Override
	public void saveCourseEvaluation(String courseEvaluationIdAndIsShowArray) {
		CourseevaluationDTO courseevaluationDTO = new CourseevaluationDTO();
		String [] array=courseEvaluationIdAndIsShowArray.split("-");
		for (int i = 0; i < array.length; i++) {
			String [] id=array[i].split(",");
			courseevaluationDTO.setevaluationid(Integer.parseInt(id[0]));
			courseevaluationDTO.setisshow(Integer.parseInt(id[1]));
			updateDAO.updateOne(CourseevaluationDTO.UPDATE, courseevaluationDTO, M10190WS);
		}
		
		
	}

}
